package com.example.administrator.caigou51.bean;

import java.util.List;

/**
 * Created by Administrator on 2016/9/7/007.
 */
public class RegionBean {


    /**
     * region_id : 2
     * parent_id : 1
     * region_name : 北京
     * region_type : 1
     * city : [{"region_id":"52","parent_id":"2","region_name":"北京","region_type":"2","area":[{"region_id":"500","parent_id":"52","region_name":"东城区","region_type":"3"},{"region_id":"501","parent_id":"52","region_name":"西城区","region_type":"3"},{"region_id":"502","parent_id":"52","region_name":"海淀区","region_type":"3"},{"region_id":"503","parent_id":"52","region_name":"朝阳区","region_type":"3"},{"region_id":"504","parent_id":"52","region_name":"崇文区","region_type":"3"},{"region_id":"505","parent_id":"52","region_name":"宣武区","region_type":"3"},{"region_id":"506","parent_id":"52","region_name":"丰台区","region_type":"3"},{"region_id":"507","parent_id":"52","region_name":"石景山区","region_type":"3"},{"region_id":"508","parent_id":"52","region_name":"房山区","region_type":"3"},{"region_id":"509","parent_id":"52","region_name":"门头沟区","region_type":"3"},{"region_id":"510","parent_id":"52","region_name":"通州区","region_type":"3"},{"region_id":"511","parent_id":"52","region_name":"顺义区","region_type":"3"},{"region_id":"512","parent_id":"52","region_name":"昌平区","region_type":"3"},{"region_id":"513","parent_id":"52","region_name":"怀柔区","region_type":"3"},{"region_id":"514","parent_id":"52","region_name":"平谷区","region_type":"3"},{"region_id":"515","parent_id":"52","region_name":"大兴区","region_type":"3"},{"region_id":"516","parent_id":"52","region_name":"密云县","region_type":"3"},{"region_id":"517","parent_id":"52","region_name":"延庆县","region_type":"3"}]}]
     */

    private List<DataEntity> data;

    public void setData(List<DataEntity> data) {
        this.data = data;
    }

    public List<DataEntity> getData() {
        return data;
    }

    public static class DataEntity {
        private String region_id;
        private String parent_id;
        private String region_name;
        private String region_type;
        /**
         * region_id : 52
         * parent_id : 2
         * region_name : 北京
         * region_type : 2
         * area : [{"region_id":"500","parent_id":"52","region_name":"东城区","region_type":"3"},{"region_id":"501","parent_id":"52","region_name":"西城区","region_type":"3"},{"region_id":"502","parent_id":"52","region_name":"海淀区","region_type":"3"},{"region_id":"503","parent_id":"52","region_name":"朝阳区","region_type":"3"},{"region_id":"504","parent_id":"52","region_name":"崇文区","region_type":"3"},{"region_id":"505","parent_id":"52","region_name":"宣武区","region_type":"3"},{"region_id":"506","parent_id":"52","region_name":"丰台区","region_type":"3"},{"region_id":"507","parent_id":"52","region_name":"石景山区","region_type":"3"},{"region_id":"508","parent_id":"52","region_name":"房山区","region_type":"3"},{"region_id":"509","parent_id":"52","region_name":"门头沟区","region_type":"3"},{"region_id":"510","parent_id":"52","region_name":"通州区","region_type":"3"},{"region_id":"511","parent_id":"52","region_name":"顺义区","region_type":"3"},{"region_id":"512","parent_id":"52","region_name":"昌平区","region_type":"3"},{"region_id":"513","parent_id":"52","region_name":"怀柔区","region_type":"3"},{"region_id":"514","parent_id":"52","region_name":"平谷区","region_type":"3"},{"region_id":"515","parent_id":"52","region_name":"大兴区","region_type":"3"},{"region_id":"516","parent_id":"52","region_name":"密云县","region_type":"3"},{"region_id":"517","parent_id":"52","region_name":"延庆县","region_type":"3"}]
         */

        private List<CityEntity> city;

        public void setRegion_id(String region_id) {
            this.region_id = region_id;
        }

        public void setParent_id(String parent_id) {
            this.parent_id = parent_id;
        }

        public void setRegion_name(String region_name) {
            this.region_name = region_name;
        }

        public void setRegion_type(String region_type) {
            this.region_type = region_type;
        }

        public void setCity(List<CityEntity> city) {
            this.city = city;
        }

        public String getRegion_id() {
            return region_id;
        }

        public String getParent_id() {
            return parent_id;
        }

        public String getRegion_name() {
            return region_name;
        }

        public String getRegion_type() {
            return region_type;
        }

        public List<CityEntity> getCity() {
            return city;
        }

        public static class CityEntity {
            private String region_id;
            private String parent_id;
            private String region_name;
            private String region_type;
            /**
             * region_id : 500
             * parent_id : 52
             * region_name : 东城区
             * region_type : 3
             */

            private List<AreaEntity> area;

            public void setRegion_id(String region_id) {
                this.region_id = region_id;
            }

            public void setParent_id(String parent_id) {
                this.parent_id = parent_id;
            }

            public void setRegion_name(String region_name) {
                this.region_name = region_name;
            }

            public void setRegion_type(String region_type) {
                this.region_type = region_type;
            }

            public void setArea(List<AreaEntity> area) {
                this.area = area;
            }

            public String getRegion_id() {
                return region_id;
            }

            public String getParent_id() {
                return parent_id;
            }

            public String getRegion_name() {
                return region_name;
            }

            public String getRegion_type() {
                return region_type;
            }

            public List<AreaEntity> getArea() {
                return area;
            }

            public static class AreaEntity {
                private String region_id;
                private String parent_id;
                private String region_name;
                private String region_type;
                public AreaEntity() {

                }
                public AreaEntity(String district_id, String district_name) {
                    this.region_id = district_id;
                    this.region_name = district_name;
                }
                public void setRegion_id(String region_id) {
                    this.region_id = region_id;
                }

                public void setParent_id(String parent_id) {
                    this.parent_id = parent_id;
                }

                public void setRegion_name(String region_name) {
                    this.region_name = region_name;
                }

                public void setRegion_type(String region_type) {
                    this.region_type = region_type;
                }

                public String getRegion_id() {
                    return region_id;
                }

                public String getParent_id() {
                    return parent_id;
                }

                public String getRegion_name() {
                    return region_name;
                }

                public String getRegion_type() {
                    return region_type;
                }
            }
        }
    }
}
